/**
 * 
 */
package graph;

/**
 * @author xiaohui
 * 
 *         To ensure correct orientation, vertices are ordered on their id.
 */
public class ELocation {

	private NetNode source, sink;
	private double dist;

	public ELocation(NetNode v1, NetNode v2, double dist) {
		if (v1.getId() < v2.getId()) {
			this.source = v1;
			this.sink = v2;
		} else {
			this.source = v2;
			this.sink = v1;
		}
		this.dist = dist;
	}
}
